package com.cn.springcloudwechat.model.order;

import org.joda.time.DateTime;

import java.util.Date;
/**
*@program: YmOrderGoods
*@author: Administrator
*@create: 2018-07-31 18:29
*/
public class YmOrderGoods {
    /**
     * 商品详情id
     */
    private Long goodsIdDesc;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 商品id
     */
    private Long goodsId;
    /**
     * 商品单价（分）
     */
    private Long goodsPrice;
    /**
     *  商品类型
     */
    private Short goodsType;
    /**
     * 商品数量
     */
    private Integer goodsNumber;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建时间Str yyyy-MM-dd
     */
    private String createTimeStr;

    /**
     *  修改时间
     */
    private Date updateTime;
    /**
     *  修改时间Str yyyy-MM-dd
     */
    private String updateTimeStr;
    /**
     * 状态
     */
    private Short state;

    /**
     * 商品超链接
     *
     * @return
     */
    private String goodsUrl;
    /**
     * 商品名
     */
    private String goodsName;

    public String getGoodsName() {
        return goodsName;
    }

    public YmOrderGoods setGoodsName(String goodsName) {
        this.goodsName = goodsName;
        return this;
    }

    public String getUpdateTimeStr() {
        return updateTimeStr;
    }

    public Long getGoodsIdDesc() {
        return goodsIdDesc;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setGoodsIdDesc(Long goodsIdDesc) {
        this.goodsIdDesc = goodsIdDesc;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Long goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Short getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Short goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTimeStr=new DateTime(createTime).toString("yyyy-MM-dd hh:mm:ss");
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTimeStr=new DateTime(updateTime).toString("yyyy-MM-dd hh:mm:ss");
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getGoodsUrl() {
        return goodsUrl;
    }

    public void setGoodsUrl(String goodsUrl) {
        this.goodsUrl = goodsUrl;
    }
}